<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/base.jsp" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">


    <!-- 全局css -->
    <link rel="shortcut icon" href="${ctx}/static2/favicon.ico">
    <link href="${ctx}/static2/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${ctx}/static2/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="${ctx}/static2/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="${ctx}/static2/css/plugins/validate/bootstrapValidator.min.css" rel="stylesheet">
    <link href="${ctx}/static2/css/animate.css" rel="stylesheet">
    <link href="${ctx}/static2/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="${ctx}/static2/css/_fstyle.css" rel="stylesheet">
    <link href="${ctx}/static2/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="${ctx}/static2/css/plugins/webuploader/webuploader.css" rel="stylesheet">
    <link href="${ctx}/static2/css/plugins/ztree/zTreeStyle.css" rel="stylesheet">
    <link href="${ctx}/static2/css/plugins/jquery-treegrid/css/jquery.treegrid.css" rel="stylesheet"/>
    <link href="${ctx}/static2/css/plugins/highlight/github.css" rel="stylesheet"/>
    <!-- <link href="${ctx}/static/css/plugins/ztree/demo.css" rel="stylesheet"> -->

    <!-- 全局js -->
    <script src="${ctx}/static2/js/jquery.min.js?v=2.1.4"></script>
    <script src="${ctx}/static2/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="${ctx}/static2/js/plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="${ctx}/static2/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="${ctx}/static2/js/plugins/validate/bootstrapValidator.min.js"></script>
    <script src="${ctx}/static2/js/plugins/validate/zh_CN.js"></script>
    <script src="${ctx}/static2/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="${ctx}/static2/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="${ctx}/static2/js/plugins/jquery-treegrid/js/jquery.treegrid.min.js"></script>
    <script src="${ctx}/static2/js/plugins/jquery-treegrid/js/jquery.treegrid.bootstrap3.js"></script>
    <script src="${ctx}/static2/js/plugins/jquery-treegrid/extension/jquery.treegrid.extension.js"></script>
    <script src="${ctx}/static2/js/plugins/layer/layer.min.js"></script>
    <script src="${ctx}/static2/js/plugins/iCheck/icheck.min.js"></script>
    <script src="${ctx}/static2/js/plugins/layer/laydate/laydate.js"></script>
    <script src="${ctx}/static2/js/plugins/webuploader/webuploader.min.js"></script>
    <script src="${ctx}/static2/js/plugins/highlight/highlight.pack.js"></script>
    <script src="${ctx}/static2/js/common/ajax-object.js"></script>
    <script src="${ctx}/static2/js/common/bootstrap-table-object.js"></script>
    <script src="${ctx}/static2/js/common/tree-table-object.js"></script>
    <script src="${ctx}/static2/js/common/web-upload-object.js"></script>
    <script src="${ctx}/static2/js/common/ztree-object.js"></script>
    <script src="${ctx}/static2/js/common/Feng.js"></script>
    <script src="${ctx}/static2/js/common/Feng.js"></script>
    <script src="${ctx}/static2/js/common/Kit.js"></script>
    <script src="${ctx}/static2/modular/code/gen/gen.js"></script>

    <title></title>
</head>
<body class="gray-bg">
<div class="row" xmlns="">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>代码生成</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="form-horizontal" id="genForm">
                            <div class="row">
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3" >
                                    参数<select id="params" name="参数" >
                                        <option value="">全部</option>
                                    </select>
                                </div>
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    作者<input id="author" name="作者" />
                                </div>
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    Code包名<input id="codePackage" name="Code包名" />
                                </div>
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    Html包名<input id="htmlPackage" name="Html包名" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    Js包名<input id="jsPackage" name="Js包名" />
                                </div>
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    Xml包名<input id="xmlPackage" name="Xml包名" />
                                </div>
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    本地路径<input id="localPath" name="本地路径" />
                                </div>
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    编码<select id="encoded" name="编码" >
                                        <option value="UTF-8">UTF-8</option>
                                        <option value="GBK">GBK</option>
                                    </select>
                                </div>
                            </div>
                            <div class="row">
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    类名<input id="className" name="类名" />
                                </div>
                                <div class="wrapper wrapper-content animated fadeInRight col-sm-3">
                                    功能<input id="name" name="功能" />
                                </div>
                                <div class="col-sm-6">
                                    <button id="genBtn" disabled="disabled" type="button" class="btn btn-primary mr10"
                                            onclick="GEN.genCode()">
                                        <span style="padding: 5px 20px;">生成</span>
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div style="padding-top: 10px; overflow: hidden"
                             class="container-fluid">
                            <div class="col-md-12">
                                <div class="row admin-form">
                                    <div class="col-md-3">
                                        <h2 class="success">链接</h2>
                                        <div class="list-group" id="dblinklist"
                                             style="height: 500px; overflow-y: scroll">

                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <h2 class="success">数据库</h2>
                                        <div class="list-group" id="databaseslist"
                                             data-bind="foreach: databases"
                                             style="height: 500px; overflow-y: scroll">
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <h2>数据表</h2>
                                        <div class="list-group" id="tableslist"
                                             data-bind="foreach: tables"
                                             style="height: 500px; overflow-y: scroll">
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <span><h2>模板
                                        </h2>
                                       <SelectCon id="groupId" name="组" >
                                            <option value="">全部</option>
                                        </SelectCon></span>
                                        <div class="list-group" id="templatesList"
                                             style="height: 500px; overflow-y: scroll">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <ul class="nav nav-list">
                            <li class="divider"></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

